package com.chenyue.cm.member.service;

import com.chenyue.cm.base.service.BaseServiceIface;
import com.chenyue.cm.member.domain.JdMember;
import com.chenyue.cm.member.vo.MemberVo;
import com.chenyue.cm.order.domain.JdProduct;

/**
 * @author chenyue-cm
 */
public interface JdMemberService extends BaseServiceIface<JdMember> {

    /**
     * 获取会员
     *
     * @param id 用户id
     * @return 封装vo
     */
    MemberVo getMember(Integer id);

    /**
     * 会员充值
     *
     * @param userId  用户id
     * @param product 商品
     * @param orderId 订单id
     */
    void rechargeMember(Integer userId, JdProduct product, Integer orderId);
}